package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 微信用户 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-09
 */
public interface UserService extends IService<User> {
    //查
    public IPage<User> findAllUser(Map<String,Object> map,Integer page, Integer limit);
    //增
    public boolean addUser(User user);
    //改
    public boolean updateUser(User user);
    //删
    public boolean delUser(Long id);
    //根据用户编号查看指定用户详细信息
    public User findUserById(Long id);
    //通过openid登录
    public User findUserByOpenId(Long openid);

}
